package com.dmap.community.rpc;

import com.dmap.community.bo.jpush.JpushParam;
import com.dmap.community.rpc.fallback.AuthRemoteFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * \* User: silent
 * \* Date: 17/10/17 Time: 09:25
 * \* Description:
 * \
 */
@FeignClient(name = "push-server", fallback = AuthRemoteFallback.class)
public interface JpushRemote {

    @RequestMapping(value = "push/jpush/sendToRegistrationId", method = RequestMethod.POST)
    public boolean sendToRegistrationId(@RequestBody JpushParam jpushParam);
}
